package harvard.cscie160.hw7.project;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * 
 * @author M. Bret Blackford
 *
 */
public class AccountImpl extends UnicastRemoteObject implements AccountInterface {
	
	private float balance = 0;
	private final int accountIdNumber;

	public AccountImpl(int _number) throws RemoteException {
		this.accountIdNumber = _number;
	}

	public int getAccountIdNumber() throws RemoteException {
		return accountIdNumber;
	}

	public float getAccountBalance() throws RemoteException {
		return balance;
	}

	public void setAccountBalance(float _balance) throws RemoteException {
		this.balance = _balance;
	}
}
